﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GetImage.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.Window.GetImage" %>


<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc1" %>
<html>
<head>
    <title>图片浏览</title>
    <meta charset="utf-8">
    <meta content="no-cache" http-equiv="Pragma" />
    <%: Scripts.Render("~/Scripts/AdminBase") %>
    <%: Styles.Render("~/Content/Bootstrap/css") %>
    <style type="text/css">
        img
        {
            cursor: pointer;
        }
        .K
        {
            border-color: Black;
            border: 1px;
        }
    </style>
    <script type="text/javascript">
        function ClickRetrun(v)
        {
            parent.$("#txtPicUrl").val(v);
            parent.$("#dialog-modal").dialog("close");
        }
    </script>
</head>
<body style="overflow: auto">
    <form runat="server" method="post" id="Form1">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:DropDownList ID="ddlPath" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlPath_SelectedIndexChanged">
            </asp:DropDownList>
                <table width="100%" cellspacing="2" cellpadding="0" border="0" align="center">
                    <tr>
                        <td style="padding-left: 3px">下级目录：<asp:DropDownList ID="DropDownList1" 
                                runat="server" onselectedindexchanged="DropDownList1_SelectedIndexChanged" AutoPostBack="true">
                            </asp:DropDownList>
                            尺寸：<asp:DropDownList ID="cbThumbSize" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ReBind">
                                <asp:ListItem Value="40">40*40</asp:ListItem>
                                <asp:ListItem Selected="True" Value="80">80*80</asp:ListItem>
                                <asp:ListItem Value="120">120*120</asp:ListItem>
                            </asp:DropDownList>
                            &nbsp;排序：
                            <asp:DropDownList ID="cbSorts" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ReBind">
                                <asp:ListItem Value="CreationTime Desc">日期倒序</asp:ListItem>
                                <asp:ListItem Value="CreationTime Asc">日期升序</asp:ListItem>
                                <asp:ListItem Value="FileSize Desc">大小倒序</asp:ListItem>
                                <asp:ListItem Value="FileSize Asc">大小升序</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="padding-left: 3px">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:DataList ID="DL_List" runat="server" RepeatColumns="5" RepeatDirection="Horizontal"
                                Width="100%" OnItemDataBound="DL_List_ItemDataBound">
                                <ItemTemplate>
                                    <div class="K">
                                        <asp:Image ID="Img" runat="server" ImageUrl='<%# ((System.Data.DataRow) Container.DataItem)["FullName"] %>'
                                            ToolTip='<%# ToolTip(
                                                             ((System.Data.DataRow) Container.DataItem)["FileName"],
                                                             ((System.Data.DataRow) Container.DataItem)["FileSize"],
                                                             ((System.Data.DataRow) Container.DataItem)["CreationTime"],
                                                             ((System.Data.DataRow) Container.DataItem)["LastWriteTime"]
                                                             ) %>' onclick='<%# PicURL(((System.Data.DataRow) Container.DataItem)["FullName"]) %>'></asp:Image></div>
                                </ItemTemplate>
                            </asp:DataList>
                        </td>
                    </tr>
                </table>
           
            <WinnerCMS:PageNavigation ID="PageNavigation1" runat="server" PageSize="25" OnPageChanging="PageNavigation1_PageChanging"
                Width="100%" SubmitButtonclass="btn btn-default" ShowCustomInfoSection="Never">
            </WinnerCMS:PageNavigation>
            
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
